'''
note: py 文件名字千万别是socket.py
'''
import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 
ip = socket.gethostbyname('www.baidu.com')
print(ip)